﻿<!--#include file="conn.asp"-->
<!--#include file="inc/CHAR.INC"-->
<%if request("act")="edit" then
ninfo="修改" 
else
ninfo="添加" 
end if
%>
<%set rs=server.createobject("adodb.recordset")
%>
<%if request("act")="save" then
id=request.form("id")
zjmc=request.form("zjmc")
tpadd=request.form("tpadd")
tps=request.form("tps")
tpf=request.form("tpf")
cid=request.form("cid")
if id="" then
sql="select * from zj"
rs.open sql,conn,1,3
rs.addnew
rs("adddate")=now()
rs("cid")=cid
else
sql="select * from zj where id="&id
rs.open sql,conn,1,3
end if
rs("zjmc")=zjmc
rs("tpadd")=tpadd
rs("tps")=tps
rs("tpf")=tpf

rs.update
rs.close
set rs=nothing 
response.write("<script>alert('成功："&ninfo&"采集项目成功!现在返回管理');location='zj_manage.asp?comicid="&request("comicid")&"&cjcomicid="&request("cjcomicid")&"'</script>")
response.end
end if%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="images/style.css" type="text/css" rel="stylesheet">
    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body>
    <%
if request("act")="edit" then
id=request("id")
set rs=server.createobject("adodb.recordset")
sql="select * from zj where id="&id
rs.open sql,conn,1,1
zjmc=rs("zjmc")
tpadd=rs("tpadd")
tps=rs("tps")
tpf=rs("tpf")
end if
    %>
    <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
        <form name="form1" method="post" action="?comicid=<%=request("comicid")%>&cjcomicid=<%=request("cjcomicid")%>&act=save">
        <tr bgcolor="3972B4">
            <td colspan="3" bgcolor="e7e7e7">
                <div align="center">
                    <strong><font color="#000000">
                        <%=ninfo%>章节数据</font></strong></div>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    章节名称</div>
            </td>
            <td width="83%">
                <input name="zjmc" type="text" id="zjmc" value="<%=zjmc%>" size="40"><input name="id"
                    type="hidden" id="id" value="<%=id%>" size="40"><input name="cid" type="hidden" id="cid"
                        value="<%=request("comicid")%>" size="40">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    章节图片地址</div>
            </td>
            <td width="83%">
                <input name="tpadd" type="text" id="tpadd" value="<%=tpadd%>" size="40">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    图片数目
                </div>
            </td>
            <td width="83%">
                <input name="tps" type="text" id="tps" value="<%=tps%>" size="40">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%" bgcolor="#FFFFFF">
                <div align="right">
                    通配符</div>
            </td>
            <td colspan="2">
                <input name="tpf" type="text" id="tpf" value="<%=tpf%>" size="40">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td colspan="3">
                <div align="center">
                    <input type="submit" name="Submit" class="Submit" value="确认<%=ninfo%>">
                </div>
            </td>
        </tr>
        </form>
    </table>
</body>
</html>
<script language="JavaScript" type="text/JavaScript">
    function SwitchNewsType(NewsType) {
        switch (NewsType) {
            case "PicNews":
                document.getElementById('PicNews').style.display = '';
                break;

        }
    }

</script>
